﻿using System;
using System.Collections.Generic;

namespace Red.Launcher.ViewModels.Workspaces.Database
{
    // This class is meant to be treated as a 1->1 with P4ClientSpecification
    // It cannot be used in the normal flow because it includes it's parents id in its values
    public class DisabledP4ClientSpecification : Record
    {
        #region Public Properties

        public bool Disabled { get; set; }

        #endregion Public Properties

        #region Implemented Properties

        public static Metadata METADATA { get; private set; }

        public override string Icon { get { throw new NotImplementedException(); } }

        public override IEnumerable<object> Values => new object[] { Disabled };

        public override Metadata Metadata => METADATA;

        #endregion Implemented Properties

        #region C-Tor

        static DisabledP4ClientSpecification()
        {
            METADATA = new Metadata()
            {
                Table = "DisabledClientSpecs",
                Keys = new string[] { "disabled" }
            };
        }

        #endregion C-Tor
    }
}
